Error Correction For Hamming Distance